Repository navigation
fix(style): build the style module unstripped so macOS loads it (0.15.0) - #16
Merged
Merged
Conversation
On macOS 26 and newer, rustc 1.97's strip leaves the library's LINKEDIT string pool misaligned and dyld refuses it (mis-aligned LINKEDIT string pool). The release profile and its build-override now set strip = false, as every other Rust build in the family does. The CHANGELOG's 0.15.0 section lists the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(style): build the style module unstripped so macOS loads it (0.15.0)
Summary
./build_appstopped right after building the citation style module: the engine's import failed with "mis-aligned LINKEDIT string pool". Cargo's release profile strips debug information by default, and on Apple targets rustc does that by rewriting the linked library with its bundled objcopy, which can leave the string pool 4 bytes off an 8-byte boundary; newer macOS refuses such a library (Stripping debuginfo on macOS produces misaligned dylibs rust-lang/rust#157750, fixed upstream in Rust 1.98).native/formcite-style/Cargo.tomlnow setsstrip = falsefor the release profile and its build-override, as FormVis's native module and every app'ssrc-taurialready do. The CHANGELOG's 0.15.0 section lists the fix, so the 0.15.0 release notes carry it.Commits
Short hashes change when the commits are signed.
Version
No new version: the fix belongs to 0.15.0, which formai-build has not built yet. Merge this before running formai-build for FormCite.
Checks
The style module was rebuilt on Linux with the new profile (
cargo build --release --locked). The files of this branch are identical to the 0.15.0 branch the full checks ran on (contract build, style gate 12 of 12, packaged app on Linux, independent check), apart from the order of this commit.Not run: the build on macOS; the owner's next
./build_appis that check.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.